#include "ope.h"
#include "ui_ope.h"

ope::ope(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::ope)
{
    ui->setupUi(this);
}
ope::ope(QTcpSocket *s, QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::ope)
{
    ui->setupUi(this);
    sock = s;
}

ope::~ope()
{
    delete ui;
}

void ope::on_sendbutton_clicked()
{
    QString words = ui->input->text();
    sock->write(words.toUtf8());
}
